package com.ruoyi.bizsys.service;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.ruoyi.bizsys.domain.ApplyContacts;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.DeviceContactsRelative;

/**
 * 通讯录授权Service接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface IApplyContactsService extends IService<ApplyContacts>{

    JSONArray getByCustNoAndApplyNo(String custNo, String applyNo, String tableName, List<DeviceContactsRelative> tableNames);

    int selectContactsCount(String custNo, String applyNo, String tableName);

    Integer batchSaveContactsTableName(List<ApplyContacts> contactsList,String tableName);

    String getNewTableName();
    String getTableName(String custNo);

    void checkNewTableData();

    void clearData();
    void clearDataByIds(String tableName,String ids);

    int getCntContactsNum(String tableName,String userId, String applyNo);

    int familycontactInContact(String tableName, List<DeviceContactsRelative> tableNames, String userId, String relatePhone, String relatePhone2);

    String getAllcontacthaschina(List<DeviceContactsRelative> tableNames,String tableName, String userId);

    String get7DaysContactsCount(String tableName, String userId);

    void syncExcludePhone();

    List<ApplyContacts> getCollectionPhone(String tableName, String userId, int size);
}
